<div class="tabs">
	<div class="tabsHeader">
		<div class="tabsHeaderContent">
			<ul>
				<li class="selected"><a href="#"><span>模块</span> </a>
				</li>
				<li><a href="#"><span>空间</span> </a>
				</li>
				<li><a href="#"><span>控制器</span> </a>
				</li>
			</ul>
		</div>
	</div>
	<div class="tabsContent">
		<div>
			<table class="table" width="100%" layoutH="65">
				<thead>
					<tr>
						<th>模块</th>
						<th>说明</th>
					</tr>
				</thead>
				<tbody>
				<?php foreach ($data['module'] as $item):?>
					<tr> 
						<td><?php echo $item->module?></td>
						<td><input type="text" onchange="ajax_modify_title(this,'module')" id="<?php echo $item->id?>" value="<?php echo $item->title?>"
							name="module"></td>
					</tr>
					<?php endforeach;?>
				</tbody>
			</table>
		</div>
		<div>
			<table class="table" width="100%" layoutH="65">
				<thead>
					<tr> 
						<th>模块</th>
						<th>空间</th>
						<th>说明</th>
					</tr>
				</thead>
				<tbody>
				<?php foreach ($data['namespace'] as $item):?>
					<tr> 
						<td><?php echo $item->module?></td>
						<td><?php echo $item->namespace?></td>
						<td><input type="text" onchange="ajax_modify_title(this,'namespace')" id="<?php echo $item->id?>" value="<?php echo $item->title?>"
							name="namespace"></td>
					</tr>
					<?php endforeach;?>
				</tbody>
			</table>
		</div>
		<div>
			<table class="table" width="100%" layoutH="65">
				<thead>
					<tr> 
						<th>模块</th>
						<th>空间</th>
						<th>控制器</th>
						<th>说明</th>
					</tr>
				</thead>
				<tbody>
				<?php foreach ($data['controller'] as $item):?>
					<tr> 
						<td><?php echo $item->module?></td>
						<td><?php echo $item->namespace?></td>
						<td><?php echo $item->controller?></td>
						<td><input onchange="ajax_modify_title(this,'controller')" id="<?php echo $item->id?>" type="text" value="<?php echo $item->title?>"
							name="controller"></td>
					</tr>
					<?php endforeach;?>
				</tbody>
			</table>
		</div>
	</div>
	<div class="tabsFooter">
		<div class="tabsFooterContent"></div>
	</div>
</div>
<script type="text/javascript">
function ajax_modify_title(obj,act){
	var o = jQuery(obj);
	jQuery.post(
		"<?php echo url('functions/modifypro');?>",
		{act:act,mid:o.attr('id'),title:o.val()},
		function(data){
			
		}
	);
}
</script>

